package cn.yunhe.action;

import cn.yunhe.entity.User;

import java.io.IOException;
import java.io.PrintWriter;

public class RoleAction extends BaseAction {
    private User user;
    public String execute() throws IOException {
       PrintWriter out = getResponse().getWriter();
       out.print("用户名"+user.getUsername()+"角色"+user.getRole().getRoleName());
       return  null;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
